﻿using System;
using System.Configuration;

namespace FBGraph.Web.Configuration
{
    /// <summary>Represents an <see cref="ExtendedPermission" /> that is required to execute requests in a specific area of a web application.</summary>
    public class FBGraphExtendedPermissionElement : ConfigurationElement
    {
        /// <summary>A <see cref="ExtendedPermission" />.</summary>
        [ConfigurationProperty("permission", IsKey = true, IsRequired = true)]
        public ExtendedPermission Permission
        {
            get { return (ExtendedPermission)this["permission"]; }
            set { this["permission"] = value; }
        }
    }
}